package com.yiyahui.project.erp.service.impl;

import java.util.List;
import com.yiyahui.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yiyahui.project.erp.mapper.YiyaStatisticsModePayMapper;
import com.yiyahui.project.erp.domain.YiyaStatisticsModePay;
import com.yiyahui.project.erp.service.IYiyaStatisticsModePayService;

/**
 * 支付维度统计Service业务层处理
 * 
 * @author yiyahui
 * @date 2020-09-18
 */
@Service
public class YiyaStatisticsModePayServiceImpl implements IYiyaStatisticsModePayService 
{
    @Autowired
    private YiyaStatisticsModePayMapper yiyaStatisticsModePayMapper;

    /**
     * 查询支付维度统计
     * 
     * @param id 支付维度统计ID
     * @return 支付维度统计
     */
    @Override
    public YiyaStatisticsModePay selectYiyaStatisticsModePayById(Long id)
    {
        return yiyaStatisticsModePayMapper.selectYiyaStatisticsModePayById(id);
    }

    /**
     * 查询支付维度统计列表
     * 
     * @param yiyaStatisticsModePay 支付维度统计
     * @return 支付维度统计
     */
    @Override
    public List<YiyaStatisticsModePay> selectYiyaStatisticsModePayList(YiyaStatisticsModePay yiyaStatisticsModePay)
    {
        return yiyaStatisticsModePayMapper.selectYiyaStatisticsModePayList(yiyaStatisticsModePay);
    }

    /**
     * 新增支付维度统计
     * 
     * @param yiyaStatisticsModePay 支付维度统计
     * @return 结果
     */
    @Override
    public int insertYiyaStatisticsModePay(YiyaStatisticsModePay yiyaStatisticsModePay)
    {
        yiyaStatisticsModePay.setCreateTime(DateUtils.getNowDate());
        return yiyaStatisticsModePayMapper.insertYiyaStatisticsModePay(yiyaStatisticsModePay);
    }

    /**
     * 修改支付维度统计
     * 
     * @param yiyaStatisticsModePay 支付维度统计
     * @return 结果
     */
    @Override
    public int updateYiyaStatisticsModePay(YiyaStatisticsModePay yiyaStatisticsModePay)
    {
        yiyaStatisticsModePay.setUpdateTime(DateUtils.getNowDate());
        return yiyaStatisticsModePayMapper.updateYiyaStatisticsModePay(yiyaStatisticsModePay);
    }

    /**
     * 批量删除支付维度统计
     * 
     * @param ids 需要删除的支付维度统计ID
     * @return 结果
     */
    @Override
    public int deleteYiyaStatisticsModePayByIds(Long[] ids)
    {
        return yiyaStatisticsModePayMapper.deleteYiyaStatisticsModePayByIds(ids);
    }

    /**
     * 删除支付维度统计信息
     * 
     * @param id 支付维度统计ID
     * @return 结果
     */
    @Override
    public int deleteYiyaStatisticsModePayById(Long id)
    {
        return yiyaStatisticsModePayMapper.deleteYiyaStatisticsModePayById(id);
    }
}
